home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000100_timbl@www2.cern.ch _Tue May 26 16:01:05 1992.msg < prev    next >
Internet Message Format  |  1994-01-24  |  4KB

  1. Return-Path: <timbl@www2.cern.ch>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA21392; Tue, 26 May 92 16:01:05 GMT+0200
  4. Received: by dxmint.cern.ch (dxcern) (5.57/3.14)
  5.     id AA04242; Tue, 26 May 92 15:59:45 +0200
  6. Received: by  www2.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  7.     id AA00465; Tue, 26 May 92 15:55:11 GMT+0100
  8. Date: Tue, 26 May 92 15:55:11 GMT+0100
  9. From: timbl@www2.cern.ch
  10. Message-Id: <9205261455.AA00465@ www2.cern.ch >
  11. Received: by NeXT Mailer (1.63)
  12. To: John O'Neall <JON@frcpn11.in2p3.fr>
  13. Subject: Making a simple file server for unix
  14. Cc: www-talk@nxoc01.cern.ch
  15.  
  16. > Date:         Tue, 26 May 92 09:16:33 EST
  17. > From: John O'Neall <JON@frcpn11.in2p3.fr>
  18.  
  19. John,
  20.  
  21. Thanks for your mails asking about how to make a simple hypertext  
  22. list of files. 
  23.  
  24.  
  25. Let me take your model of the three layers. I sugest that the 1st  
  26. layer
  27.  
  28. >helppage (1st-layer):  various info and pointers to local
  29. >         info that won't change much as well as to WWW proper.
  30. >         Among other things, it'll point to a [...]
  31.  
  32. you write by hand.  You can read the HTML documentation in    
  33. http://info.cern.ch/hypertext/WWW/MarkUp/MarkUp.html
  34. or you can just copy another node which looks like what you want.   
  35. (Get its address and then read it with www -source address). Or both.
  36.  
  37. You might want to put pointers to the general subject index, and the  
  38. index of HEP sites.  Let me know when you set up a server so that I  
  39. can put in on the list!
  40.  
  41. For the second layer,
  42.  
  43. > 2nd-layer list:  this is the thing that will point to ALL the
  44. >    local flat files.  Then I need an automatic (cron'd) procedure
  45. >    to regenerate the list every time I add more flat data
  46. >     files (or periodically).
  47.  
  48.  
  49. This is easy: you generate it with a little shell script. How about  
  50. the one appended to this message?  It generates a hypertext menu of  
  51. files in a set of directories (passed as arguments). You can massage  
  52. it to put in your own title, heading, etc. If you can generate some  
  53. human-readable description of each file, so much the better.  You  
  54. could run this as a cron job into an Overveiw.html file which you  
  55. then publish with httpd, or run it from a server daemon script so  
  56. that the list is generated fresh for every read, and always  
  57. up-to-date.
  58.  
  59. The third layer is your set of files.  If you publish these with a  
  60. server script, you can add to each one a title (if you can generate  
  61. it) and maybe a link back to the list of other documents befre you  
  62. just send the plain text file.
  63.  
  64. You could read some of the tips on the web about ettiquette, etc.
  65.  
  66. >By the way, if such a list already exists in W3 somewhere, I'll be
  67. >happy to point to it too.  And then there's no reason why our server
  68. >shouldn't be accessible to the rest of W3.
  69.  
  70. It would be a great addition to the web!  Let me know when it's up  
  71. and I'll put pointers to it from some overview documents. (evn at the  
  72. experimental stage, I'll mark the links "experimental" if you like).
  73.  
  74. >Tim, any chance of getting the hypertext editor for something other
  75. >than Next one day?  I realize that was the simplest thing to develop
  76. >it on, but I suspect it's not the commonest workstation in HEP.
  77.  
  78. It's on the "hit-list" and we're lookig for volunteers. Maybe the Mac  
  79. browser will be the first to be also an editor. Or maybe one of hte X  
  80. browsers.  I agree the NeXT is not the most common platform! (Though  
  81. it is neat ;-)
  82.  
  83. >Excuse me for rushing, but I'm supposed to present this project to  
  84. the
  85. >HEPIX-F meeting in Paris on Tuesday and this weekend will be a long  
  86. one
  87. > (at least, in France).
  88.  
  89. Good luck! Mail cailliau@(I'm off to the US -- so I'm rushing too!)
  90.  
  91. Mail me or www-talk@info.cern.ch if you have any problems... 
  92.  
  93.  
  94. If you have smart ideas, circulate them to this list too.
  95.  
  96.     Tim
  97.  
  98. __________________
  99.  
  100. #! /bin/sh
  101. # Generate hypertext menu from directory list
  102. echo "<TITLE>Information under: $*</TITLE>"
  103. echo "<H1>$*</H1>"
  104. # If there is a README file include that as plain text
  105. if [ -f $1/README ]; then
  106.     echo "<XMP>"
  107.     cat $1/README
  108.     echo "</XMP>"
  109. fi
  110. # Now generate a list of links to files
  111. echo "<DIR>"
  112. for dir in $*
  113. do (
  114.     cd $dir
  115.     for file in *.html *.txt
  116.     do 
  117.  
  118.     echo "<LI><A HREF=./$dir/$file>Title of $file</A>" 
  119.  
  120.     done
  121.     )
  122. done
  123. echo "</DIR>"
  124.